/**
 * Created with IntelliJ IDEA.
 * User: Администратор
 * Date: 28.07.12
 * Time: 11:14
 * To change this template use File | Settings | File Templates.
 */
    // Require the module we just created
/*

require(["demo/myModule", "dojo/domReady!"], function(myModule){
    // Use our module to change the text in the greeting
    myModule.setText("greeting", "Hello Dojo!");

    // After a few seconds, restore the text to its original state
    setTimeout(function(){
        myModule.restoreText("greeting");
    }, 3000);
});

*/
require(["dojo/dom", "dojo/fx", "dojo/domReady!"], function(dom, fx){
    // The piece we had before…
    var greeting = dom.byId("greeting");
    greeting.innerHTML += " from Dojo!";

    // …but now, with a fun animation!
    fx.slideTo({
        top: 100,
        left: 200,
        node: greeting
    }).play();
});